<?php
/**
 * User: @lixu
 * Date: 2019-05-29
 * Time: 14:53
 */

namespace Biz\service\wiki;

use Biz\module\Classes\wikiTab\WikiTab;

class GoodThing extends WikiTab
{
    const TAB_TYPE = 'wiki_guess_recommend';
    const PAGE_SIZE = null;

    public static function getList($uid, $page = 1)
    {
        $result = self::getWikiIdList(['uid' => $uid], $page);

        $wikiList = Wiki::getCompleteWikiList($result['rows'], $uid);

        return ['is_over' => $result['is_over'], 'list' => $wikiList ? array_values($wikiList) : []];
    }
}